function sendJson(){
	$.ajax({ 
		type :'post',
		url :'register.do',
		contentType:"application/x-www-form-urlencoded;charset=utf-8", 
		data:$("#form1").serialize(),
		success : function(result) {
			if(result=="success"){
				alert("注册成功");
			    window.location.href = "toLogin.do"; 
			}else{
				alert("注册失败");
			}
		}
	});
}   